﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;

using UI.WebControls.ControlsBase;
using BLL.AuthModel;
using Model.AuthModel;
namespace UI.WebControls
{
    /// <summary>
    /// UI层，页面控件基类，模块分类
    /// </summary>
    public class ModuleTypeDDL : DropDownListBase
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                base.Items.Add(new ListItem("=请选择=", "0"));
                IList<ModuleTypeInfo> list = new ModuleTypeBLL().ListAllModuleType();
                foreach (ModuleTypeInfo info in list)
                    base.Items.Add(new ListItem(info.ModuleTypeName, info.ModuleTypeID.ToString()));
            }
            base.OnLoad(e);
        }
    }
}
